﻿using DXBase.Loader;
using DXBase.Scenes;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sample03_ModelLoader
{
	public class ModelLoaderScene : IScene
	{
		public ModelLoaderScene()
		{
			Logs = new ObservableCollection<string>();
			Models = new List<Model3D>();
		}

		public ObservableCollection<string> Logs { get; private set; }
		public void AddLog(string s, int max = 20)
		{
			Logs.Add(s);
			while (max > 1 && Logs.Count > max)
				Logs.RemoveAt(0);
		}

		public List<Model3D> Models { get; private set; }

		public void Update(DXBase.DXContext ctxt, DXBase.PerformanceTimer ptimer)
		{
		}

		public void Render(DXBase.DXContext ctxt)
		{
		}

		public DXBase.InputController Inputcontroller { get; set; }
	}
}
